  <div *ngFor="let item of imgList" style="float:left;margin-left:10px;">
    <ng-container *ngIf="isViewMode; else elseTemplate">
      <img src="{{item}}" style="width: 70px;" (click)="onViewClick(item)">
    </ng-container>
    <ng-template #elseTemplate>
      <img src="{{item}}" style="width: 70px;" (click)="onEditClick(item)">
    </ng-template>
  </div>